﻿using UnityEngine;
using System.Collections;

public class TOP : MonoBehaviour
{

    private GameObject bird;

    void Awake()
    {
        bird = GameObject.FindGameObjectWithTag("Player");
    }
	// Use this for initialization
    void OnCollisionEnter(Collision other)
    {
        if(GameManage._intance.gameState == GameManage.GAME_PLAY)
            bird.rigidbody.velocity = new Vector3(2.0f, bird.transform.position.y, bird.transform.position.z);
    }
}
